-
Warning “/dev/xxxx should be checked for errors” for Ubunutu
Posted on June 21st, 2015 Add commentsRecently there is a warning message
1*** /dev/xxxx should be checked for errors ***shown on the screen, every time I login to the ubuntu 14.04 via putty.
It seems to be a similar bug with this
12#the solution was simply run the command below in many discussionssudo rm /var/lib/update-notifier/fsck-at-rebootbut after the command was done, the file was recreated when I logged in again.
1234#The second solution I found was modify the file belowsudo vi /etc/default/rcS#change the last line "#FSCKFIX=no" to be "FSCKFIX=yes", and run the commandsudo touch /forcefsckthen reboot, but still no fix.
If you really want to get rid of this message, instead of removing the file “fsck-at-reboot” in the first solution, just remove all content inside the file, then the message will be gone.
64 views
-
Fix HP LaserJet 1018/1020 not printing issue in Ubuntu 14.04
Posted on April 16th, 2015 4 commentsAfter I upgraded Ubuntu to 14.04 LTS, the HP LaserJet 1020 printer stopped working mysteriously, whatever print job sent to the print, it returns “job completed”, but has nothing to print out. I noticed the HPLIP driver has been used for the printer by default, but it didn’t work either even I changed the driver to foo2zjs via CUPS web interface.
After googled quite a while, I finally figured out that the foo2zjs package included in Ubuntu has some issues, as well as the HPLIP package. I decided to remove both of them out, and use the correct foo2zjs driver. See below for how:- Remove HPLIP package (if you had installed it manually, refer here for uninstall)
1sudo apt-get remove hplip - Get and install foo2zjs package from official site
12345678sudo apt-get install build-essential tix foomatic-filters groff dcwget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gztar zxf foo2zjs.tar.gzcd foo2zjsmakesudo make installsudo make install-hotplugsudo make cups - Get HP LaserJet 1020 firmware files, and copy the files to system firmware folder. (use “1018” instead of “1020” for LaserJet 1018 printer)
12./getweb 1020sudo cp sihp1020.* /lib/firmware/hp/ - Installing “foomatic-filters” may remove some CUPS packages, you can reinstall the CUPS or do it when you have problem in step 6
1sudo apt-get -y install cups - Reboot PC and printer
- Access the CUPS web interface “http://localhost:631” to add HP printer by using foo2zjs drivers
2,464 views
- Remove HPLIP package (if you had installed it manually, refer here for uninstall)
-
One line to remove all unneeded old kernel for Ubuntu
Posted on December 5th, 2011 Add commentsAlong with the kernel keeps updating, many old kernels are kept in the system. For normal users, those old kernels are no longer needed, so the best way just remove them.
To remove all kernels, just run the single line with below:1dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | grep -E "(image|headers)" | xargs sudo apt-get -y purge*Original post from here
164 views
-
Ubuntu Desktop Screen Upside down??
Posted on September 3rd, 2010 2 commentsI used to have an Nvidia video card on Ubuntu and use Nvidia Xserver drive for it, but couple days ago I decided to remove that card and use the onboard video card which is INTEL GMA 950.
After take the Nvidia out, I have to generate the new xorg.conf file for the X Windows and new video device. So, just use Ctrl + Alt + F1 switch to text mode, and run:1234sudo service gdm stopsudo Xorg -configuremv xorg.conf.new /etc/X11/xorg.confsudo rebootAfter reboot, the desktop screen become to upside down. Even can’t type anything in terminal. To fix it, just switch to text mode again, rename “/etc/X11/xorg.conf” to “/etc/X11/xorg.conf.new”, then reboot. The screen is back to normal but no video driver, then use synaptic to find any package beginning with “nvidia”, and remove them all. Last thing is change “/etc/X11/xorg.conf.new” back to “/etc/X11/xorg.conf” and reboot, then all set.
827 views
-
ORACLE databse can not start by missing tablespace file
Posted on February 13th, 2010 1 commentToday, as usual, trying to login to Oracle database do something, but when typing “sqlplus” and username/password, it showing:
12ERROR :ORA-01033: ORACLE initialization or shutdown in progressIt seems like Oracle database was not starting somehow. After connect the database as SYSDBA, type some command for trying to restart the datadase:
12345678910111213141516SQL> shutdown immediate;ORA-01109: database not openDatabase dismounted.ORACLE instance shut down.SQL> startupORACLE instance started.Total System Global Area 171966464 bytesFixed Size 787988 bytesVariable Size 145750508 bytesDatabase Buffers 25165824 bytesRedo Buffers 262144 bytesDatabase mounted.ORA-01157: cannot identify/lock data file 6 - see DBWR trace fileORA-01110: data file 6: '/home/XXX/XXX.dbf'Now finally realized what happened and how this happened. There is a tablespace file “XXX.dbf” missing. To solve this issue, connect database as SYSDBA, then:
123SQL> alter database datafile 'XXX.dbf' offline drop;SQL> shutdown immediate;SQL> startup;
584 views
Recent Comments