Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thinstation printers #699

Open
RichCoop opened this issue Feb 7, 2022 · 39 comments
Open

Thinstation printers #699

RichCoop opened this issue Feb 7, 2022 · 39 comments

Comments

@RichCoop
Copy link

RichCoop commented Feb 7, 2022

Hello, i try to make the terminal server grab the lan printer, but it doesn't work.
I connect to to it through freerdp.

I write this in the thinstation.conf.buildtime:

CUPS_PRINTER_0_NAME="Kyocera TASKalfa 3500i"
CUPS_PRINTER_0_DEVICEURI="socket://192.168.0.3"
CUPS_PRINTER_0_DRIVER="drv:///sample.drv/generpcl.ppd"
and
SESSION_0_FREERDP_OPTIONS="/f /v /d /cert-ignore /g /printer"

What do i do wrong?
P.S. i don't specify the /printer parameter as later i will add more printers and i need them all to be available. According to the xfreerdp keys, if i write just '/printer' it should take all the printers.

@RichCoop
Copy link
Author

RichCoop commented Feb 8, 2022

I tried to specify the printer and still nothing.

@RichCoop
Copy link
Author

Maybe something else is required? Or i write these lines wrong?

@Thinstation
Copy link
Owner

Does the printer get mapped in CUPS with those lines? Check at http://localhost:631

@RichCoop
Copy link
Author

I should follow localhost from the inside of thinstaion? Sorry for stupid questions, I'm just kinda new to this.

@Thinstation
Copy link
Owner

Yes, you need to open a web browser and go to http://localhost:631 on a thinstation.

@RichCoop
Copy link
Author

So i need to add a package with it to the build.conf? Or you meant open this from the terminal session?

@Thinstation
Copy link
Owner

Do a build with chrome, and then open it on the thinstation and confirm that your printer was mapped.

@RichCoop
Copy link
Author

RichCoop commented Feb 11, 2022

I added chrome package into the build.conf.
When i try to run it, thinstation says:
[0211/123110.157789:ERROR:file_writer.cc(98)] writev: No space left on device (28)
[0211/123110.157789:ERROR:crash_report_exception_handler.cc(226)] WriteEverything failed
Trace/breakpoint trap

rootfs is 100% used, i believe this is the problem, how can i add more space to it? The disk itself thinstation runs on is 250g.

Also I didn't include 'package lprng' in the build.conf because if i do that i receive Kernel panic error during the thinstation launch.

@Thinstation
Copy link
Owner

More RAM. Try developing a virtual machine first.

@RichCoop
Copy link
Author

RichCoop commented Feb 11, 2022

More ram? Isn't 4 gb enough for this?

@Thinstation
Copy link
Owner

Thinstation commented Feb 11, 2022 via email

@RichCoop
Copy link
Author

Hmmm during the build stage all seems to be fine, got to check the process logs more carefully though. However it would be strange that 250gb of the disk space isn't enough for it.
As for the ram, i thought 4 gb is enough too, the problem is, it is a physical machine and 4gb is the max, we don't have any more ddr2. Can it be that with the chrome package some other packages are necessary? Also i checked df -h, here is what it shows:
Filesystem, size, used,available,use%,mounted on
rootfs 1.4G 1.4g 0 100% /
devtmpfs 1.4G 0 1.4G 0% /dev
tmpfs 1.7G 0 1.7G 0% /dev/shm
tmpfs 1.7G 932.0K 1.7G 0% /run
tmpfs 1.7G 0 1.7G 0% /sys/fs/cgroup
tmpfs 1.7G 16.0K 1.7G 0% /tmp
/dev/sdb1 238.8G 568.1M 232.3G 0% /mnt/disc/sdb/part6
/dev/sda1 27.3G 4.6G 21.3G 0% /mnt/disc/sda/part1
/dev/sda6 199.7G 17.3G 172.2G 9% /mnt/disc/sda/part6
tmpfs 349.6M 4.0K 349.6M 0% /run/user/1000

@Thinstation
Copy link
Owner

rootfs 1.4G 1.4g 0 100% /
is full. free up some space on /

@RichCoop
Copy link
Author

How should i do that?

@Thinstation
Copy link
Owner

You need more RAM. Develop on a VM. Once you have everything working, you can remove the things you don't need anymore and make your image small for real hardware.

@RichCoop
Copy link
Author

I ve tired it on another physical machine, this time it has 8gb RAM, no error above, except it doesn't work either.
This time it only says 'Trace/breakpoint trap'

@RichCoop
Copy link
Author

Perhaps i need to include more packages?

@RichCoop
Copy link
Author

Other browsers don't work either.

@Thinstation
Copy link
Owner

The browser is the most tested application for ThinStation that there is. Maype Putin did something to your internet?

@RichCoop
Copy link
Author

Unlikely, as we use proxy in Germany. I receive this error all the time:

'Trace/breakpoint trap'

I'm pretty sure i need some more packages to include, which ones should be 100% included, maybe i miss some?

@Thinstation
Copy link
Owner

You can use the /build/conf/basic/* files. Just uncomment chrome and build.

@RichCoop
Copy link
Author

So, you suggest to replace my current ones with these? OK, i will try it.

@RichCoop
Copy link
Author

Still the same, i think the reason is that these browsers require some graphics.
I tried openbox, but it fails to run, it says:

"Failed to open the display from the DISPLAY environment variable"

Same thing for xfmw4.

@Thinstation
Copy link
Owner

Are you doing an allmodules/allfirmware build with all the xorg7- (except nvidia)?

@RichCoop
Copy link
Author

I picked all the xorg7 including nvidia and i build with --allmodules and --autodl.
The error is the same.

@Thinstation
Copy link
Owner

Thinstation commented Feb 21, 2022 via email

@RichCoop
Copy link
Author

I cleaned my chroot and did everything again, this time without the nvidia, no changes.

@Thinstation
Copy link
Owner

Idk. VM's with browsers are the most tested build ever. I made a whole video running through every step.

@RichCoop
Copy link
Author

build.conf.txt
thinstation.conf.buildtime.txt

I tried on several physical machines, same thing. Maybe i miss something in my packages?

@Thinstation
Copy link
Owner

And when you build in a VM?

@RichCoop
Copy link
Author

RichCoop commented Feb 24, 2022

The vm doesn't launch i receive the error: "Kernel panic - not syncing: VFS: Unable to mount root fs on uknown-block (0,0)

After some adjustments it gives me this error instead: "/init: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory."

@RichCoop
Copy link
Author

Dunno what to do now :/

@Thinstation
Copy link
Owner

Thinstation commented Feb 28, 2022 via email

@RichCoop
Copy link
Author

That was the soltution, but all the other problems above persist in the virutal machine aswell.

@Doncuppjr
Copy link
Contributor

Doncuppjr commented Feb 28, 2022 via email

@RichCoop
Copy link
Author

With ram that was my fault yes, however i was pretty sure that 4 gb would be enough as it turned out i needed 6.
But still can't open chrome on the VM too, aswell as i can't setup printers.

@Thinstation
Copy link
Owner

Thinstation commented Feb 28, 2022 via email

@RichCoop
Copy link
Author

RichCoop commented Mar 1, 2022

It is highly unlikely as i downloaded and configured things directly from the links here. And i tried this on the physical machines and the virtual ones. I even tried a machine with 8 gb ram and still the same thing. Tried it in different networks and still the same thing. I believe i miss something in the configs, but i don't know what.

@RichCoop
Copy link
Author

RichCoop commented Mar 3, 2022

I ve tried this again, it looks like openbox works in the session where connection window pops up. But i can't open anything else there, if i open another terminal session, openbox doesn't work aswell as any browsers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants