LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Move firefox profile and cache into RAM tmpfs.

Posted 11-22-2017 at 04:57 AM by number22
Updated 11-22-2017 at 11:48 AM by number22

Relocating firefox's profile and cache into tmpfs of RAM; speed up firefox and save your hard drive's lifespan and space.

Change XXXX.UserProfile to exactly to your path of course.

creating backup locations first:
Code:
mkdir ~/backup/firefox.profile
mkdir ~/backup/firefox.cache
chmod 700 ~/backup/firefox.*
edit your /etc/fstab add following lines files will be mounted on firefox original locations, profile and cache:
Code:
tmpfs  your_home/.mozilla/firefox/XXXX.UserProfile
...
Member
Posted in Uncategorized
Views 512 Comments 0 number22 is offline
Old

Bootable PC-DOS usb drive

Posted 10-06-2016 at 10:23 PM by number22
Updated 10-07-2016 at 10:38 PM by number22

We need a system to run old DOS program. Microsoft's Win98 lacks proper memory management for modem computer with larger amount memory. We have PC-DOS (from IBM) lay around.

Basic setup: Syslinux + floppy image with boot.bss

Need create a empty floppy image on usb drive.(your usb is already fdisk with FAT16 partition, and mkfs.msdos formatted).
Code:
#mount -t msdos /dev/usbpartition# /mnt/usb
#cd /mnt/usb
#dd bs=512 count=2880 if=/dev/zero of=fd0.img
...
Member
Posted in Uncategorized
Views 921 Comments 1 number22 is offline
Old

keyboard or mouse mounted as ghost joystick

Posted 09-14-2016 at 01:15 PM by number22
Updated 09-15-2016 at 07:58 PM by number22 (spelling, format)

Mouse cursor jumps randomly and having a hard time in some steam games. This problem is fixed by udev rules. find this link by google: udev keyboard joystick

https://github.com/denilsonsa/udev-joystick-blacklist

Modified its rules so the ghost joystick is unbinded from usbhid driver.

Code:
#Microsoft Corp. Basic Optical Mouse v2.0 power
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0x045e", ATTR{idProduct}=="0x00cb",
...
Member
Posted in Uncategorized
Views 940 Comments 0 number22 is offline
Old

ffmpeg alsa recording multiple applications audio

Posted 01-28-2016 at 11:56 PM by number22
Updated 02-07-2016 at 04:30 AM by number22

The trick is using dmix on loopback device:
2 dmixers; one for regualr onboard audio; the other for loopback virtual device, then duplicates streams send to onboard audio card, so you can hear what is being sent to loopback device.

Need to load snd_aloop module first;

Code:
modprobe snd-aloop index=2 id=Loopback pcm_substreams=1 enable=1
My first audio device is onboard soundcard; 2nd is HDMI card, so I put index=2 for Loopback device.

file...
Member
Posted in Uncategorized
Views 1639 Comments 0 number22 is offline
Old

Recover from hard drive MBR corruption with LVM/LUKS partitions

Posted 11-12-2015 at 09:05 AM by number22
Updated 11-12-2015 at 09:08 AM by number22

Using latest version boot cd or usb rescue disk, which is created by usbboot.img from cd or ftp.slackware.com

create usbboot.img with dd command.(#dd if=usbboot.img of=/dev/sdb bs=1M) (clear usb disk #dd if=/dev/zero of=/dev/sdb bs=512).

once boot up:

# cryptsetup luksOpen /dev/sdxx luksname (sdxx your encrypted luks partition)

After successful enter password:

#vgscan --mknodes
#vgchange -ay
#mount /dev/cryptvg/root /mnt...
Member
Posted in Uncategorized
Views 1865 Comments 0 number22 is offline

  



All times are GMT -5. The time now is 02:58 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration