Forcing fsck on next reboot
$ sudo touch /forcefsck $ sudo reboot
Merging PDFs
$ sudo apt-get install pdftk $ pdftk file1.pdf file2.pdf file3.pdf file4.pdf cat output merge.pdf
Formatting USB disks/memories
mkfs -t vfat -V -I -c /dev/sdb -n LABEL eject /dev/sdb
Fixing Oracle Repository GPG/PGP Key Error
The error (in Synaptic or during “apt-get update”):
W: GPG error: http://oss.oracle.com unstable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2E2BCDBCB38A8516 W: You may want to run apt-get update to correct these problems
The solution:
$ sudo wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle -O- | sudo apt-key add -
Editing Gnome Menus
$ cd ~/.local/share/applications
then check the contents and add/edit/remove *.desktop
VirtualBox Tips
1. Install it: it’s fantastic!
2. Install from Download Sun xVM VirtualBox 1.6, not from Synaptic. If you want all the feature don’t go for the Open Source Edition (OSE).
3. In ubuntu I use OSS Audio Driver with Controller ICH AC97. With others I got audio problems.
4. Install the guest additions (Devices Menu=>Install Guest Additions), you’ll have very cool features like the seamless integration, mouse integration, and the screen resizing to fit the window size, and more.
5. If you want the USB support (not available in the OSE), you will face two errors:
The first: “Could not load the Host USB Proxy Service (VERR_FILE_NOT_FOUND). The service might be not installed on the host computer. “
Solution: edit the file /etc/init.d/mountdevsubfs.sh and uncomment the following lines
# # Magic to make /proc/bus/usb work # mkdir -p /dev/bus/usb/.usbfs domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644 ln -s .usbfs/devices /dev/bus/usb/devices mount --rbind /dev/bus/usb /proc/bus/usb
Then if you try to use USB devices you’ll probably get another error: “Not permitted to open the USB device, check usbfs options.”
Solution: add to /etc/fstab
none /proc/bus/usb usbfs devgid=85,devmode=666 0 0
Adding more executable binary format support to Linux.
The command to do this magic is update-binfmts, not very difficult to use, but to learn try:
$ update-binfmts --display // to see the list of associations $ man update-binfmts // to learn how to use it
Search
Calendar
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « May | Jul » | |||||
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | ||||||
Archives
Categories
- Android (3)
- Apple (26)
- Books (7)
- Eclipse (14)
- Errors (3)
- Firefox (7)
- Git (2)
- Hardware (16)
- Horror Code (8)
- Internet (18)
- Java (98)
- JavaScript (9)
- Life, universe and everything (45)
- Lifehacks (25)
- Linux (50)
- Opinions (25)
- OSX (4)
- Python (1)
- Software (27)
- Speeches and Conferences (8)
- Unix (3)
- Web (21)
- Windows (19)
Tag Cloud
Android apple architecture Bash colors configuration CSS Development Düsseldorf Eclipse germany Git Google Hardware hdr How-To Java JAXB job junit Karmic Linux MacBook music night Open Source Opinion oracle OSX patterns Pitfalls Practices Resume Security Software Suspend TDD Testing tip tonemapped Tricks Ubuntu video Web XML
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.
Blog License
Blogs I like
Books on the desk
Friends' Blogs
- Antonio Terreno & Valter Bernardini
- Bruno Bossola
- Daniele Galluccio
- Domenico Ventura
- Ed Schepis
- Fabrizio Gianneschi
- Luca Grulla
- Luigi Zanderighi
- Marcello Teodori
- Mida Boghetich
- Muralidharan Chandrasekaran
- Piero Ricca
- Renzo Borgatti
- Simone Bordet
- Simone Bruno
- Uberto Barbini
- Valvolog
- Webtide blogs (Greg Wilkins & Jan Bartel)
Links




















No Responses to “Very Quick Linux Tips”
Please Wait
Leave a Reply