LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > neonsignal
User Name
Password

Notices


Uncategorized Entries with no category
Old

adding non-repository deb packages to apt

Posted 11-01-2011 at 05:48 AM by neonsignal

A local repository can be created for miscellaneous deb packages that are not part of a standard repository, so that they can be managed by apt-get.

Create a repository (it can be located anywhere):
Code:
mkdir /var/cache/apt/altdeb
Copy the relevant deb files to that place. Then generate a package index:
Code:
dpkg-scanpackages /var/cache/apt/altdeb /dev/null | gzip >/var/cache/apt/altdeb/Packages.gz
Add a line to...
Senior Member
Posted in Uncategorized
Views 507 Comments 0 neonsignal is offline
Old

inserting unicode characters

Posted 11-01-2011 at 05:17 AM by neonsignal

The method for inserting unicode characters depends on the application.

For GTK based applications, a unicode character can be inserted by holding down ctrl-shift, typing 'u' followed by the hex code, and then releasing the ctrl-shift.

In vi, in insert mode, ctrl-v can be used, followed by 'u' and the hex code.

I do not know of a method for Qt based applications.

Of course, for entering significant amounts of non-ascii text, it can be useful...
Senior Member
Posted in Uncategorized
Views 422 Comments 0 neonsignal is offline
Old

booting from the grub command line

Posted 10-30-2011 at 06:50 AM by neonsignal

There are grub2 boot failures (such as when disk UUIDs don't match) where it can be useful to do a minimal boot from the grub command line.

For typical systems (such as booting from the first partition of the first hard drive), this can be done with the following grub commands:
Code:
linux (hd0,1)/vmlinuz root=/dev/sda1
initrd (hd0,1)/initrd.img
boot
Senior Member
Posted in Uncategorized
Views 810 Comments 0 neonsignal is offline
Old

changing the default system editor

Posted 10-30-2011 at 06:42 AM by neonsignal

The default system editor in Debian is typically nano. If you prefer a different editor such as vi, it can be changed by setting the link from /etc/alternatives/editor:
Code:
ln -sf /usr/bin/vi /etc/alternatives/editor
Senior Member
Posted in Uncategorized
Views 670 Comments 0 neonsignal is offline
Old

compacting a VirtualBox Windows storage container

Posted 10-19-2011 at 09:47 PM by neonsignal

After a Windows client has been used inside VirtualBox for some time (particularly if large files have been removed), it can be useful to compact the storage container image (VDI) by removing unused space.

First, the space needs to be cleaned inside the client. This requires defragmenting the drive, and then running a program such as SysInternals sdelete to zero the unused space, so that the VirtualBox utilities are able to compact the file.
Code:
sdelete -c
...
Senior Member
Posted in Uncategorized
Views 804 Comments 0 neonsignal is offline

  



All times are GMT -5. The time now is 07:46 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration