Below is a way to connect your clients like smartphone, laptop, etc to the Internets while you are out and about connecting to random WiFi networks etc like Mac Donalds, and to help protect yourself while on them unknown networks with unknown users
Install mppe kernel support
# modprobe ppp-compress-18
# apt-get install pptpd
Configure IP Address Range
Edit the file /etc/pptpd.conf for the IP address range
restart pptpd to activate changes
# invoke-rc.d pptpd restart
Adding users accounts
Edit the file /etc/ppp/chap-secrets
test_user * lamepassword *
The above will give you a working PPTPD where your able to connect to securely but you’ll most probably can’t connect to the outside network.
To allow you PPTP clients access to the big bad internet
Enable IPv4 forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
Finally configure your iptables
iptables -A INPUT -i ppp+ -j ACCEPT
iptables -A OUTPUT -o ppp+ -j ACCEPT
iptables -A POSTROUTING -t nat -o eth0 -j MASQUERADE
iptables -A POSTROUTING -t nat -o ppp+ -j MASQUERADE
If you want all traffic to go through the PPTP connection
Edit the file /etc/ppp/pptpd-options and change
# Debian: do not replace the default route
# Debian: do not replace the default route
and don’t forget to restart pptpd
Debian pptpd HOWTO
This is how I got the ENE UB6250 card reader working under Debian testing one my Acer Aspire One D255E
Bus 001 Device 005: ID 0cf2:6250 ENE Technology, Inc. SD card reader (UB6250)
This card reader uses the ums-eneub6250 module and needs firmware to operate correctly which is currently not included in the Debian firmware-linux or firmware-linux-nonfree packages.
The way I have gotten around the problem at the moment is to downloaded the Ubuntu linux-firmware package and extracted the deb package to copy the directory ene-ub6250 from the extracted directory /lib/firmware/ to /lib/firmware/ on my working system as I not wanted to install 40 odd megabyte of other firmware I not needed.
After moving the files over run the following and all should be ready to use
# depmod -ae
# update-initramfs -u
Today I setup Prey 0.5.3 on my netbook running Debian testing.
# apt-get install prey
Here is what I modified in my ‘/etc/prey/config‘
# autoconnect feature, disabled by default until we are 200% sure it
# works flawlessly in all platforms. feel free to try it out though.
# you can get both of these from Prey's web service
# if you're having trouble getting requests across your firewall or proxy,
# you can try adding '-0' to make curl perform HTTP 1.0 requests
# this option prepends a random number as a subdomain to the check URL on http mode
# makes it harder for other programs to block Prey so its a good idea to be on
Also I added to my root crontab for updates
# crontab -e
*/10 * * * * /usr/share/prey/prey.sh > /var/log/prey.log
*/10 * * * * /usr/lib/prey/prey.sh > /var/log/prey.log
Well switching from nVidia propietry drivers to the open source Nouveau drivers for nVidia GPU’s I found I had no 3D acceleration, and when running glxinfo etc I was getting
Error: couldn't find RGB GLX visual or fbconfig
And in Xorg.log.0 output file I was seeing
Failed to load module "glx" (loader failed, 7)
Turns out after stuffing around trying to find a solution, I did a search to find the package that held libglx.so and that was in the xserver-xorg-core. Well I reinstalled xserver-xorg-core and it fixed the problem and I now have 3D goodness
# apt-get install --reinstall xserver-xorg-core
Well it happens every now and then that we have to upgrade our hardware to semi keep up with the times. In my case it was upgrading from a 533MHz fanless mini ITX system to a P4 3GHz machine to handle my firewall/gateway/routing/www/proxy/mail etc. Only real major problem I had been with ‘Dovecot‘ not being able to locate mail directories, which was strange as the 2 systems are an almost mirror copy of each other.
Jan 10 22:50:21 system dovecot: pop3(user): Error: user user: Initialization failed: mail_location not set and autodetection failed: Mail storage autodetection failed with home=/home/user
Jan 10 22:50:21 system dovecot: pop3(user): Error: Invalid user settings. Refer to server log for more information.
Turns out cause Dovecot v2 under Debian has gone to a multi conf setup I had to set the mail location in ‘/etc/dovecot/conf.d/10-mail.conf‘
mail_location = mbox:~/mail:INBOX=/var/mail/%u
Also the other to check is that the permissions of the mail directories are set to 700 and make the directory if needed:
# mkdir /home/user/mail
# chown user:user mail
# chmod 700 mail
Besides the above error, the rest the upgrade using the config file from the original system was pretty painless beside some clean up to get rid minor warnings in the syslog file. Well this has been my evening, and maybe the above info may help someone else with the same problem.
Oh and the other major thing to remember is to enable IP forwarding and enable the changes to the sysctl.conf
# sysctl -w net.ipv4.ip_forward=1
# sysctl -w net.ipv6.conf.all.forwarding=1
# sysctl -p /etc/sysctl.conf
As it sure does help with stable connectivity for other devices connection to the internets
Linux Counter’s new update script is an all bash script that uses a secure connection with ‘curl’ or ‘wget’ to upload the user’s machine stats back to the Counter server, so no need to now worry about the problem of having a mail server to send machine stats.
I honestly think this script is a great improvement and hopefully more people will setup the new script to automatically update their stats via crontab.
Anyways you can get the new script here
As I primarily use Linux and I had to find an alternative way to program radios like Tait, Icom etc that have Dos based software to program them along with the need to have a serial port. Well after some trial and errors with various emulators like dosemu and wine, I found dosbox was able to do what I need to accomplish with accessing the radio via USB to Serial cable which you can buy cheap enough off of eBay.
Edit dosbox config file:
$ nano .dosbox/dosbox-0.74.conf
and alter the ‘serial 1‘ line to read:
Then you can run your dos program in terminal:
$ dosbox /location/to/you/dos/program.exe
Well it has been 18 years now that Debian has been around in the Linux community offering a great distribution to work with and use. Show your appreciation of Debian and the wonderful developers and a like that have contributed to the Debian project and the Linux community by saying thanks at theDebian Appreciation Day website.
If you are like me and like to run a custom install of Debian with a lightweight setup with Fluxbox, SLiM, PCManFM, etc and you have problems with mounting USB devices such as flash drives etc and get the “Not Authorized” message in PCManFM under Debian, here is a workaround that should still work after upgrade, rather than editing ‘
/usr/share/polkit-1/actions/org.freedesktop.udisks.policy‘ itself, which does not last after software upgrade of udisks if I am not mistaken, but I sure someone will correct me if I am wrong
As root create:
and add the following:
Polkit will automatically recognize the newly added file.
To make sure you have the ability to mount the USB devices, be sure to add yourself to the plugdev group
# usermod -a -G plugdev YOUR-LOGIN
Now logout and log back in for above to take effect if you just added yourself to the plugdev
PCManFM – ArchWiki