Showing posts with label networking. Show all posts
Showing posts with label networking. Show all posts

Wednesday, July 15, 2020

The old router to the rescue

This is an interesting one, in my mind.
Some years ago, many actually, I got a router of the brand Sweex. This brand is/was lower end gear for the Dutch market. The router did OK-ish, however, I was not so convinced, so, at some stage, a got another one. No, I wont mention the brand here, since this was the real disappointment.
Anyway, the Sweex LW310V2 did serve a few years, and ended up in storage for a few years.
Finally, lately, I remembered that there was something concerning a "bridge" in this very inexpensive router. I checked my expensive (not to be named) present device, and there was no bridge option. Bummer! Some further giveaway, the company of said more expensive device recently removed the feature of a free dynamic DNS.
So, what was keeping me using the device? Nothing!
Back to the Sweex. It turned out that, while there is a bridge mode present, this is not what I need/ The big deal on this WiFi router is that has a WAN medium option which allows for wireless LAN.
Hence, I had to set my cable modem to allow bridge mode on WiFi and the Sweex WLAN router to wireless WAN mode. Both had to be set on the same channel And there we go.
The Sweex now offers its own WiFi and Ethernet LAN bridged from my cable modem.
Yep, that's what we want.
My old Sweex LW310V2 is back in service, after a break of many years. Glad I did not through it in the garbage, which I intended before.


Sunday, May 10, 2020

Running FreeDOS in QEMU

As indicated before, I also have a Debian 8 latop, which is perfectly fine for my daily tasks, and hence, I do not have the desire to discard the Linux running on it, in particular since everything, including WLAN is running perfectly on this hardware.
This latop, a HP/Compaq nx6110, was also able to run the FreeDOS live-CD.

Anyway, I installed FreeDOS on a virtual drive on this particular computer. Again, the hardware, i.e. keyboard, is just perfect for my regular use under Linux.

When installing the FreeDOS image, I encountered some minor problems getting the networking to up and running. Finally, I ended up with a script as follows:

#!/bin/bash
qemu-system-i386 -m 32M -drive file=drivec.img,media=disk,format=raw -net nic,model=pcnet -net user


With this script, I am able to browse the internet using Lynx. I am pretty sure that I will be able to use other network services too.

Friday, March 24, 2017

Printer HP LaserJet Pro MFP M130fw

Sorry for the long silence on this channel. There were so many things on my plate, I had no time sharing any of my latest IT (Linux) adventures.

For my place in TO (Toronto, Ontario), I thought it might be important to finally upgrade my IT with a printer. And talking printer, I envisioned a laser printer, for documents and boarding passes ;-)
There was a sales campaign with HP going on. So, I ended up with buying a relatively recent model, which is able to also scan (copy and fax).

My IT in Toronto is all based on Linux Mint 18.1 MATE. The printer, being a recent model, is not (yet) supported in Linux. However, the model is also a cloud printer. So, while I wait for native support, I linked it up to hpeprint, which allows for printing PDFs by sending emails to hpeprint.com.

Concerning scanning, a similar email based approach can be selected. However, the printer can connect to SMB-shares on Linux Mint.

In order to configure the printer, connect to its web-server using it IP address. I recommend to assign an address in your router's DHCP-server.

Now that we are talking SAMBA (SMB), I might just drop a few word about Linux Mint's caja-share file browser's inability to connect to shares.
This is not a fault of caja-share. It is not a fault of the samba-server in Linux Mint.
The problem lays in the file /etc/samba/smb.conf ... locate this:
# Change this to the workgroup/NT-domain name your Samba server will part of
        workgroup = workgroup
        name resolve order = bcast hostand add the line in boldface.
Don't forget to restart your smbd!
Having done that, not only Linux Mint computers will be able to share directories, also the HP LaserJet MFP M130 will be able to connect to the shares and depose files in said shares.

Taking it back to the printing aspect of the HP device. Installing cloud services was working fine in my environment. While the "All-in-One Remote" and "HP ePrint" apps are working fine on my Android phone, the HP Print Plugin is unable to locate the printer in my network...



Thursday, October 23, 2014

Your Own Cloud Server - Owncloud on a Low Power Server

Modern everyday "computing" (referring to computer usage) is done on low power devices, such as smartphones and tablet PCs.
 Many of such devices and their applications (aka apps) depend on the availability of "the cloud".
"The cloud" brings its very own challenges and difficulties. Many cloud service, in particular the gratis ones, claim ownership of the data given to them. In addition to that kind of problem, the space offered by such services is usually rather limited. Of course ... one can get more, when paying some sort of subscription fee. Fair enough...

However, there is an alternative: running your very own cloud service.

Let's take some considerations to design a system for a private cloud service:
  1. low energy consumption
  2. high capacity
  3. availability
  4. data safety
  5. low cost
  6. available clients
With the present technology, I figure one cannot obtain all the wishes with using just a single computer. However, I believe that a simple system can be set up to fulfill all the requirements of the considerations. Actually, I did just that, for my very own personal cloud.

And here is how I did it, and what I used.

The Cloud Server Hardware
For serving the personal cloud, a computer is needed that runs essentially 24/7. The power consumption of which will finally dominate the energy bill for the system. Also, I wanted this particular server to be really silent, since I do not have the space for a dedicated server room.
My decision was to go for an GigaByte BRIX with a Celeron N2807. This device is passively cooled, very cheap and takes 2.5" HDDs. I decided to give the BRIX 4GB of RAM and a 500GB TOSHIBA HDD, making it a very quiet little box with a decent capacity.

The Cloud Server OS & Software
For the OS I decided to go with ubuntu server 14.04.1 LTS. Ubuntu is not my first choice when it comes to operation systems, in particular due to the built-in spyware (e.g. Zeitgeist), however, when it comes to hardware compatibility, ubuntu is the leader of the pack. Using a contemporary device as the BRIX therefore urges for the decision to use ubuntu. Also, I think that stuff like Zeitgeist is not present on the server edition of ubuntu (not sure though). To make life easy, I use webmin on the headless server,
Turning towards the cloud server. I am aware of only one server for which cloud clients exist for essentially every system available: owncloud.
The documentation available for ubuntu server and owncloud is good enough, so that I wont comment any further.

Availability
That's a topic that splits in 2 easily.
  1. the server needs to run 24/7, we already had that topic....
  2. the server needs to be reachable from anywhere
For the second point I would like to point towards dynamic DNS.  Should you have your very own domain, this will of course not affect you. I use a dynDNS called noip, which is for free under certain circumstances.

Data Safety
Now we are touching a topic that is not as easy as it sound. How safe do you want your data to be? How much of your data do you need to be really safe?
Since I can't answer any of questions alike for anyone else but me, I would like to share my very own approach to the problem.
In my home, a file-server backs up all data on a RAIDZ (Zetabyte FS RAID). For the purpose I run a 6 core AMD FX6100 based, 4 x 1TB HDD machine. This particular machine, running FreeNAS, was originally housing my cloud-server. However, AMD processors are known for being somewhat power hungry, hence, this server runs a few hours a week only.
For data safety, I backup of all my computers, including the BRIX, on this file-server. Such backups can be easily configured for the cloud-server, using webmin (NFS is your friend!).

The Costs
Finally, the last topic. The BRIX is the cheapest computer I ever bought... I believe. In average this thing runs on 5 to 8 Watts.

Clients
Owncloud.org offers clients for Windows, OS-X and Linux for free.  Further, paid apps are available to connect Android and IOS devices to owncloud severs. There are some 3rd party Android apps available for free...

Conclusion
Running your own cloud service is an easy thing, which comes essentially for free. Volume is not an issue any longer, add as much space as you need! The BRIX comes with a USB3 port, hence you can plug as much storage as your heart desires into the device...



BIOS photos (BRIX)
on demand, I shot some photos (literally) of the BIOS settings I believe being relevant (no particular order):





I hope, those help...


UPDATE:
Wolfram Webers found that his BRIXs wont boot using ubuntu. However, Wolfram made a successful attempt installing CentOS7. Actually, I might just give that a try too! Thanks Wolfram!


UPDATE:
Wolfram Webers wrote on google+:
It was grub, of course. And here's my solution that works at least for Debian 7.8:

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX="crashkernel=auto vconsole.keymap=de vconsole.font=latarcyrh eb-sun16 rhgb quiet"
GRUB_TERMINAL_OUTPUT="console"
GRUB_DISABLE_SUBMENU=true
GRUB_DISABLE_RECOVERY=true


Again, thank you very Wolfram! I am sure that this help other who wish to build such a little own-cloud server.


Tuesday, September 9, 2014

NAS4Free Observation

Presently I am duplicating the data residing on my NAS4Free server (Acer EasyStore H340) to my somewhat more potent AMD FX6100 based FreeNAS server.

Copying data by means of NFS is not that exciting...
However, what can be observed is.
My NAS4Free is usually set to the "Powermode" "adaptive" (low power consumption). For events like copying TBs of data, I might set it to "highadaptive" (high performance - using more power).
Since my Intel ATOM 230 seems to be the bottleneck, I opened the gates and set it to "maximum" (highest performance).

Watching the sever performance, the following was observed:
  • adaptive produced a solid outbound data stream of about 30Mbps with a CPU load of about 10%
  • lowadaptive produce the same outbound data stream of about 30Mbps with slightlt higher CPU load of 12%
  • maximum actually resulted in a lower outbound data stream of about 25Mbps ....
Not sure why that is. However, my conclusion is to always run this particular server at "lowadaptive".

Wednesday, February 12, 2014

Wi-Fi for the Wimp

In the last post, I wrote about a Hackintosh running on an upper end motherboard (Gigabyte Z77N-WiFi) with a lower end CPU (Intel Celeron G1610). To my surprise, despite a relatively long boot-time, the system is really usable.

However, the intention to set this computer up in a place rather remote from my ethernet, some option for wireless-LAN needed to be considered.

Of course, the Z77N-WiFi offers a MiniPCI Express slot, in which, conveniently enough, a WiFi/Bluetooth card is placed, hence the name of the board. Interestingly, only half the WiFi-card is natively supported by OS-X, namely the Bluetooth part.
There are a some MiniPCI-E modules available, which enjoy full native support, however, those don't offer BT!

In my i5-3570k box, I actually replaced the MiniPCI-E card, in order to arrive at native support. For Bluetooth on the other hand, I had to resort to a USB-device, which I had laying around anyway.

Now it fell all down to the question if I would order another MiniPCI-E WiFi card and a BT device, or, if I should hang on to the module supplied with the mobo and find a USB-solution for WiFi.

You feel it coming, I guess, yes, I had a USB-WiFi device in one of my drawers. The device is somewhat older, a Sweex LW303. And of course, there is not OS-X support for this adapter.
Or is there?

The LW303 employs a Ralink RT2870 chipset, which is good news! Some quick searching reveals that there is a OS-X 10.9 driver available for this particular chipset.
Have a look: http://store.bearextender.com/products/bearextender-1200-for-mac
And yes, the Beartender looks very promising itself!

The driver worked OOB with the LW303. Not sure if the numbers match up in terms of bandwidth, but this is what Mavericks believes to see:

802.11 n WLAN:

  Product ID:    0x0302
  Vendor ID:    0x177f
  Version:     1.01
  Serial Number:    1.0
  Speed:    Up to 480 Mb/sec
  Manufacturer:    Ralink
  Location ID:    0x14400000 / 1
  Current Available (mA):    500
  Current Required (mA):    450
  BSD Name:    en3


480 Mb/sec seems a bit fast for a device of which the manufacturer thinks it able to operate at 300 Mb/sec.

A minor detail to note: I put the adapter in a USB3 port, the one just below the PS2-port.

Independently of that mismatch, the USB WiFi-adapter works fine in this ultra low power PC!

Wednesday, August 7, 2013

Turn Your Old WiFi-Router Into a Wireless-AP

Thursday, July 18, 2013

Turn Your Old WiFi-Router Into a Wireless-AP

You may have noticed that I am busy renovating my IT. Some days ago, I posted a short text about the use of smoothwall as a caching web-proxy. Now it seems time to also hand over the routing to smoothwall. At the time of writing the last post, I simply hooked up my WiFi-router to the smoothwall box, telling it to get WAN from it (by DHCP). The rest of the routing was done by this trusty but old router. Downside of this router, it is equipped with 100Mbps only, while the rest of my wired network is 1Gbps.

Went shopping today, and grabbed a simple 5 port Gigabit switch, which is now connected to the smoothwall box.

How to get WiFi? I still could use the old router and tell it to get WAN from said switch. To tidy up address space, it would however be nice to have an Wireless access point in place of a WiFi-router.
A quick search in the internet revealed this page:
http://www.smallnetbuilder.com/wireless/wireless-basics/30338-how-to-convert-a-wireless-router-into-an-access-point
Very cool stuff! Works like a charm!

The next step would be to loose the cheap Gigabit switch again and integrate everything in the "production environment".

WiFi for Hacks

Saturday, July 13, 2013

WiFi for Hacks

The dear reader may have noticed that a concept called hackintosh caught my attention. Actually, some years ago, when Leopard (OS-X 10.5), the thirst OS-X running on x86 hardware, came out, I already built various systems (Intel Q6600, Intel E4600) capable of running OS-X.
That gets us what a hackintosh actually is. It is a PC, mainly based on Intel processors, which is able to run Apple's OS-X under certain circumstances. To learn more, please search the internet, also about the legal implications/requirements.

The whole trick about hackintoshs is to find the right hardware, being compatible with the original OS-X. Mind you, the name hackintosh refers to the hardware, not the operation system, meaning, that the OS remains absolutely original, i.e. unchanged and non-hacked.

There are to mini PCI-e cards which are fully compatible with OS-X 10.8 that I know of (and actually tested):
  1. Broadcom BCM94322HML 
  2. Atheros AR5BHB92
My hackintoshs are based on GA-Z77N-WiFi and GA-H77N-WiFi mobos. Both boards come equipped with an Intel mini PCI-e WiFi/BT-combo-card. Whilst BlueTooth is working fine under OS-X, the WiFi part of this card is just dead.
Some additional info here, the Intel cards are equipped with 2 coax connectors, which is reflected by the 2 aerials provided with the mobos. Both cards mentioned above have 2 coax connectors.

From here, there are two options:
  1. keep the Intel card for BT and use something else for WiFi
  2. exchange the Intel with any of the two mentioned above and use something else for BT 
I personally went for option 2. And here is why:
There is a TPlink WiFi PCI-E card which is 100% compatible and works really well. However, there is only one PCI-E slot with the mobos mentioned above. Using this slot forces the use of the low power on-board graphics. There are other options like compatible USB WiFi devices, however, I believe that the bandwidth would be compromised here.
The second option provides full bandwidth for WiFi, leaving the single PCI-E slot for a GPU. On the downside, one now has to look for an alternative BlueTooth device. It happens that I own a couple of old USB BT devices. All those devices seem to be compatible with OS-X. Due to the low bandwidth of BT, I can easily live with the USB solution.

improve your web experience

Saturday, July 6, 2013

improve your web experience

Howdy!
Yet another off-topic post. Lately I am not doing a lot of radio. However, I think that the occasional experience with IT can be at least as much fun as good ole ham radio.
One of the last experiments was virtualization using proxmox on an AMD E-350 low power dual core processor. This particular system is now equipped with an additional ethernet card (100Mbps) and serves as a firewall w/ caching web-proxy using Smoothwall Express 3.1 RC1. The hardware I use is a total overkill: 8GB RAM and 250GB HDD space. As I said, it was used for experiments with virtualization.
The surfing experience has improved a lot since static features of webpages are now locally stored in the caching proxy.
Using smoothwall with squid is highly recommended!
Cheers!